/**
 * RTM报警信息处理
 *
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// // 品牌 - 下拉框
// export const getBrandSelect = params =>
//   axios.get(`/api/basedata/vehicleProduct/brandsqueryall`, {
//     params
//   });
// // 车系 - 下拉框
// export const getSeriesSelect = (id, params) =>
//   axios.get(`/api/basedata/vehicleProduct/brandsdict/${id}/seriessdict`, {
//     params
//   });
// // 车型 - 下拉框
// export const getModelSelect = (brandId, id, params) =>
//   axios.get(`/api/basedata/vehicleProduct/brandsdict/${brandId}/seriessdict/${id}/modelsdict`, {
//     params
//   });

// 页面主查询
export const getRtmAlarm = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customer/rtmalarm/findAll`, { params });

// RTM报警信息明细
export const getRtmAlarmDeatil = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customer/rtmalarm/rtmalarmDetail/${params.rtmTrafficCode}`);

// 救援信息编辑
export const addRescueInfo = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customer/rtmalarm/addRescueInfo`, params);

// 救援信息上传RTM到ACC系统
export const reportRTMToAcc = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customer/rtmalarm/sendRTMToAcc`, params);
